package com.qingcheng.service;

import com.qingcheng.pojo.goods.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("service-goods")
public interface CategoryFegin {

    @GetMapping("/goods/category/findById")
    Category findById(@RequestParam("id") Integer id);
}
